<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.thymeleaf.org/thymeleaf-extras-shiro">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a href="/out">退出</a>
<!--判断当前用户是否有user:add这个权限-->
<div shiro:hasPermission="user:add">
<a href="/add">add</a>
</div>
<br/>

<a href="/update">update</a>

<br/>

<a href="/toadmin">toadmin</a>

</body>
</html>